#ifndef _CM_COLLECCTIONITEM_H
#define _CM_COLLECCTIONITEM_H

/******************************************************************************
** @file	cm_collectiontime.h
** @author	Joel Chuca Condo
**
** @date	Sep 01, 2010
**
** @desc	This class persists the time in that is storaged a collecction 
**          of registries, share folders, proccesses, files and directories 
**          of a computer in a database.
**
******************************************************************************/

#include <string>
#include <iostream>
#include <wmi_reader.h>
#include "sqlite3x.hpp"
#include "cm_scripts.h"
#include "cm_common.h"

using namespace std;
using namespace sqlite3x;

class CMEXPORT CM_CollectionItem
{
public:
   
    /**
    * Default constructor
    */ 
    CM_CollectionItem();
    

    /**
    * Destructor
    */
    ~CM_CollectionItem();

    /**
    * saves the time that a collection of results of a computer wants 
    * to be saved
    *
    * @param computerId. Is the computer id of database.
    * @retun an integer value indicating the success of the process
    */
    int 
    saveCollectionTime(int computerId);

    /**
    * Gets the last id of the time that a collection of results of a 
    * computer were saved
    *
    * @param computerId. The computer id of database.
    * @retun an integer value indicating the success of the process
    */
    int 
    getCollectionLastId(int computerId);

    /**
    * Gets the before last id of the time that a collection of results
    * of a computer were saved
    *
    * @param computerId. The computer id of database.
    * @retun an integer value indicating the success of the process
    */
    int 
    getCollectionBeforeLastId(int computerId);
};

#endif
